package com.leixiaoqiao.service;

import com.github.pagehelper.PageInfo;
import com.leixiaoqiao.pojo.Customer;

import java.util.HashMap;
import java.util.List;

public interface CustomerService {

    void addCustomer(Customer customer);//增
    //删
    void deleteCustomerById(int id);
    void deleteCustomers(String[] ids);

    void updateCustomer(Customer customer);//改
    //查
    Customer findCustomerById(int id);
    //带条件、不带条件的分页查询以及页面展示
    PageInfo<Customer> findPage(HashMap<String, String> queryParamMap);
}
